package com.lpf;

import com.coxautodev.graphql.tools.GraphQLQueryResolver;
import com.lpf.pojo.Book;
import org.springframework.stereotype.Component;

@Component
public class BookResolver implements GraphQLQueryResolver {

    public Book bookById(String id){
        Book book = new Book();
        book.setId("book1");
        book.setName("test");
        return book;
    }
}
